package com.gray.quartz.simple;

import lombok.Data;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * Created on 2019/6/24.
 *
 * @author hy
 * @since 1.0
 */
@Data
public class SimpleJob  implements Job {

    private Runnable runnable;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        runnable.run();
    }
}
